<?php

namespace app\common\model;

use app\common\library\MemberVo;
use app\common\traits\TimeToStringTrait;
use think\Model;

/**
 * 模型
 */
class OrderAftersalesRecord extends Model
{
    use TimeToStringTrait;

    // 表名
    protected $name = '';
    protected $deleteTime = false;
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;

    // 追加属性
    protected $append = [

    ];

    public function getCreatetimeAttr($value)
    {
        return !empty($value) ? date('Y.m.d H:i',$value) : '';
    }

    public function getRemarkAttr($value)
    {
        return !empty($value) ? $value : '';
    }



}
